#pragma once
#include<string>

class Buffer
{
private:
    std::string buf;
public:
    Buffer(/* args */);
    ~Buffer();
    void append(const char* _str, int _size);
    ssize_t size();
    const char* c_str();
    void clear();
};

Buffer::Buffer(/* args */)
{
}

Buffer::~Buffer()
{
}

void Buffer::append(const char* _str, int _size) {
    buf.append(_str);
}

ssize_t Buffer::size(){return buf.size();}

const char* Buffer::c_str(){return buf.c_str();}

void Buffer::clear(){
    buf.clear();
}